package com.rs.dao;

import com.github.pagehelper.Page;
import com.rs.model.ZhOnBusiness;
import java.util.List;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

@Mapper
public interface ZhOnBusinessMapper {

    int deleteByPrimaryKey(Integer onId);

    int insert(ZhOnBusiness record);

    int insertSelective(ZhOnBusiness record);


    ZhOnBusiness selectByPrimaryKey(Integer onId);


    int updateByPrimaryKeySelective(ZhOnBusiness record);

    int updateByPrimaryKey(ZhOnBusiness record);
    
    //出差记录审核
    int updateOnBusinessAudit(ZhOnBusiness record);
    
    //根据状态查寻所有人员的出差信息审核记录
    Page<ZhOnBusiness> selectOnBusinessAudit(@Param("onAudit")Integer onAudit);
    
    //人员查询自己的所有的出差信息记录
    Page<ZhOnBusiness> selectOneselfOnBusinessAudit(ZhOnBusiness record);
    
    
    /**
     * 查询自己的所有的出差信息记录(状态  和 姓名)
     * @param record
     * @return
     */
    Page<ZhOnBusiness> selectOneselfOnBusinessAuditByUname(ZhOnBusiness record);
    
    
}